<?php

class App
{	
	
	public static function import($type,$name)
	{
		$context = Context::getInstance();
		
		switch ($type) {
			case 'comp':
				$url = $context->PathComponentes() . FileUtil::Slash() . $name.".php";
			break;
			case 'module':
				$url =  $context->getDirController()  . FileUtil::Slash() . $name .".php";
			break;			
			
		}
		include_once($url);	
	}
}

?>